﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CECB
{
    /// <summary>
    /// Interaction logic for Login_Window.xaml
    /// </summary>
    public partial class Login_Window : Window
    {
        public Login_Window()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {


           if (new Dss.Methods.UserLogin().UserLoginClick(UserNameTextBox.Text.Trim(), PasswordTextBox.Password))           
            {
                RibbonWindow1 ss = new RibbonWindow1();
                ss.Show();
            }
            else
                MessageBox.Show("Error!");

        }



        private void btn_Exit_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show(new Dss.Methods.UserLogin().UserExitClick(UserNameTextBox.Text.Trim()));


        }
    }
}
